package com.example.security.entity;

import lombok.Data;

/**
 * 用户表
 */
@Data
public class User {
    private Integer id;

    /**
     * 姓名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    private String roles;

    /**
     * 帐户未过期
     */
    private boolean accountNonExpired;

    /**
     * 帐户未锁定
     */
    private boolean accountNonLocked;

    /**
     * 凭证(密码)未过期
     */
    private boolean credentialsNonExpired;

    /**
     * 账户是否被禁用
     */
    private boolean enabled;


}